package com.zzyl.nursing.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 设备上报数据Vo
 * @author zbr
 * @version 1.0
 * @since 2025/3/6 16:53
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "设备上报数据")
public class DeviceReportDataVo {

     /**
      * 属性名
      */
     @ApiModelProperty(value = "属性名")
     private String functionId;

     /**
      * 上报时间
      */
     @ApiModelProperty(value = "上报时间,格式：yyyy-MM-dd HH:mm:ss")
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
     private LocalDateTime eventTime;

     /**
      * 属性值
      */
     @ApiModelProperty(value = "属性值")
     private Integer value;
}
